<?php
echo "<h3>Welcome ".$_SESSION['user_fname']." ".$_SESSION['user_lname']."</h3>";
?>
<head>

<!--		<script type="text/javascript" src="http://www.google.com/jsapi?key=ABQIAAAAZBe7uHI90ESk2XAmWRL3RxR6u04U0tImA3bfwZ3-HKdEno7z2xRk2YE6OkudtBX5qy0vLrgbf1DUCg"></script>
		<script type="text/javascript">
		google.load("maps", "2.x");
		</script>-->
<!--                      <link href="http://code.google.com/apis/maps/documentation/javascript/examples/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>-->
</head>
<?php
$file_path = 'client';
echo "<script type=\"text/javascript\" src=\"$file_path/client_side_communication_interface.js\"></script>";
echo "<script type=\"text/javascript\" src=\"$file_path/time_slider.js\"></script>";
echo "<script type=\"text/javascript\" src=\"$file_path/business_home_page_handler.js\"></script>";
  echo "<script type=\"text/javascript\" src=\"$file_path/form_validator.js\"></script>";
echo "<script type=\"text/javascript\" src=\"$file_path/event_registration_handler.js\"></script>";
//          $host  = $_SERVER['HTTP_HOST'];
//$uri   = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
//$PHP_SELF=$_SERVER['PHP_SELF'];
//$self = str_replace(stristr($PHP_SELF, '?'),'',$PHP_SELF);
//$server = $_SERVER['DOCUMENT_ROOT']."/stellogoogle/eventsmanager/";
//$path = $server."object_auto_loader.php";
//include_once "$path";
//
//new object_auto_loader();




//echo "<link href=\"css/googlemap/default.css\" rel=\"stylesheet\" type=\"text/css\" />";
    // echo $CSS_path = "<link type=\"text/css\" href=\"css/$this->CSS_type/jquery-ui-1.8.12.custom.css\" rel=\"stylesheet\" />";
//echo "<script type=\"text/javascript\" src=\"$file_path/google_map_engine.js\"></script>";
//echo "<script type=\"text/javascript\" src=\"$file_path/business_map_handler.js\"></script>";

?>



		<style type="text/css" media="screen">
			#selectable .ui-selecting { background: #FECA40; }
	#selectable .ui-selected { background: #F39814; color: white; }
	#selectable { list-style-type: none; margin: 0; padding: 0; width: 60%; }
	#selectable li { margin: 3px; padding: 0.4em; font-size: 1.4em; height: 18px; }
                    #map { float:left; width:500px; height:500px; }
			#message { position:absolute; padding:10px; background:#555; color:#fff; width:75px; }
			#list { float:left; width:200px; background:#eee; list-style:none; padding:0; }
			#list li { padding:10px; }
			#list li:hover { background:#555; color:#fff; cursor:pointer; cursor:hand; }
		</style>
	
	

                <div id="tabs">
	<ul>
		<li><a href="#tabs-1">View Registered Events</a></li>
		<li><a href="#tabs-2">Add New Event</a></li>
		<li><a href="#tabs-3">View User Details</a></li>
                <li><a href="#tabs-4">Go Home</a></li>
	</ul>
	<div id="tabs-1">
		<?php
              $eventLister = new event_details_viewer();
                echo $eventLister->getCurrentEventList();
                echo $eventLister->showDetailedContentForEventDialog();
                echo $eventLister->showDeleteEventConfirmModalWindow();
                echo $eventLister->showDeleteEventOKWindow();
                ?>
	</div>
	<div id="tabs-2">
<?php
$file_path = 'client';
$eventRegistrationContent= new event_registration_handler();
echo $eventRegistrationContent->showEventRegistrationForm();
echo $eventRegistrationContent->showTimeSelectorModalWindow();
echo $eventRegistrationContent->showConfirmDialogBox();
echo $eventRegistrationContent->showEventRegistrationOKMessageBox();
//echo $a->showEventLocationSelector();


?>
	</div>
	<div id="tabs-3">
	<?php
      if(isset($_SESSION['user_uname']))
      {
        $userDetailsContent  = new user_details_handler($_SESSION['user_uname']);
        echo $userDetailsContent->showBUserDetails();
      }
       else
       {
        echo "You have entered this page illegally.";   
       }
        
        ?>

	</div>
    	<div id="tabs-4">

	</div>
</div>
	


   

                 

<div id='dialog-event-location-map' title="Select Event Location">
      <body id='googleMapContent' onload="initializeMap();">
<div id="map_canvas" style="width:100%; height:90%">   </div>
<div style =' border: 1px solid transparent; height:5%; position:absolute; bottom:0px; ' class='errorMessageDiv'>Please Select Geo-Coordinates the Prospective Facility
      </div>
   </body>
    </div>

    
<!--<div id="mapping"></div>-->
<?php




?>

